Skip to content

fix: restore mTLS auth with client cert#2171

Open
maxim-sermin wants to merge 2 commits intohuggingface:mainfrom
maxim-sermin:fix/restore-mtls
Open

fix: restore mTLS auth with client cert#2171
maxim-sermin wants to merge 2 commits intohuggingface:mainfrom
maxim-sermin:fix/restore-mtls

Conversation

@maxim-sermin
Copy link

Summary

The ability to attach a client certificate to authenticate with mTLS was removed with this commit a while back.
Still, the documentation states that mTLS is supported. This is actually quite a unique functionality among chat clients and lead me to using this project in the first place.

Changes

  • The necessary config/env values (USE_CLIENT_CERTIFICATE, CERT_PATH, KEY_PATH) were still there - unchanged
  • Added back the original implementation src/lib/utils/loadClientCerts.ts which calls setGlobalDispatcher
  • Added call to loadClientCertificates in src/lib/server/models.ts because this was the first usage for me - open for suggestions for better location

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 816360b8ee

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant